/************************************************************
   Copyright 2008 Abhinav Pobbati

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
*************************************************************/

#pragma once
#include "Havok4Xna/Physics/Dynamics/HkpDynamics.h"
#include "Havok4Xna/Physics/Dynamics/World/HkpWorld.h"

#pragma unmanaged
#include <Physics/Dynamics/Phantom/hkpPhantom.h>
#include <Physics/Dynamics/Phantom/hkpAabbPhantom.h>
#include <Physics/Dynamics/Phantom/hkpPhantomListener.h>
#include <Physics/Dynamics/Phantom/hkpShapePhantom.h>
#include <Physics/Dynamics/Phantom/hkpCachingShapePhantom.h>
#include <Physics/Dynamics/Phantom/hkpPhantomOverlapListener.h>
#include <Physics/Dynamics/Phantom/hkpSimpleShapePhantom.h>
#pragma managed

namespace Havok4Xna {
	namespace Physics {
		namespace Dynamics {
			public ref class HkpPhantom : public HkpWorldObject {
			internal:
				HK_DERIVED_CLASS_INTERNALS(HkpPhantom, hkpPhantom, HkpWorldObject)
			};

			public ref class HkpAabbPhantom : public HkpPhantom {
			internal:
				HK_DERIVED_CLASS_INTERNALS(HkpAabbPhantom, hkpAabbPhantom, HkpPhantom)
			};

			public ref class HkpShapePhantom : public HkpPhantom {
			internal:
				HK_DERIVED_CLASS_INTERNALS(HkpShapePhantom, hkpShapePhantom, HkpPhantom)
			};

			public ref class HkpSimpleShapePhantom : public HkpShapePhantom {
			internal:
				HK_DERIVED_CLASS_INTERNALS(HkpSimpleShapePhantom, hkpSimpleShapePhantom, HkpShapePhantom)
			};

			public ref class HkpCachingShapePhantom : public HkpShapePhantom {
			internal:
				HK_DERIVED_CLASS_INTERNALS(HkpCachingShapePhantom, hkpCachingShapePhantom, HkpShapePhantom)
			};

			public ref class HkpCollidableAddedEvent : public INativeReference {
			internal:
				HK_CLASS_INTERNALS(HkpCollidableAddedEvent, hkpCollidableAddedEvent)
			};

			public ref class HkpCollidableRemovedEvent : public INativeReference {
			internal:
				HK_CLASS_INTERNALS(HkpCollidableRemovedEvent, hkpCollidableRemovedEvent)
			};

			public interface class HkpPhantomListener : public INativeReference {
				void PhantomAddedCallback(HkpPhantom ^phantom);
				void PhantomRemovedCallback(HkpPhantom ^phantom);
				void PhantomShapeSetCallback(HkpPhantom ^phantom);
				void PhantomDeletedCallback(HkpPhantom ^phantom);
			};

			public interface class HkpPhantomOverlapListener : public INativeReference {
				void CollidableAddedCallback(HkpCollidableAddedEvent ^evt);
				void CollidableRemovedCallback(HkpCollidableRemovedEvent ^evt);
			};
		}
	}
}
